import fetch from 'common/src/utils/fetch';

/**
 *新增权限
 */
function addGraduateExamAuth(data) {
    return fetch({
        url: '/api/electionservice/graduateAuth/addGraduateExamAuth',
        method: 'post',
        data: data
    });
}

/**
 *编辑权限
 */
function editGraduateExamAuth(data) {
    return fetch({
        url: '/api/electionservice/graduateAuth/editGraduateExamAuth',
        method: 'post',
        data: data
    });
}

/**
 *删除权限
 */
function deleteGraduateExamAuth(data) {
    return fetch({
        url: '/api/electionservice/graduateAuth/deleteGraduateExamAuth',
        method: 'post',
        data: data
    });
}

/**
 *权限列表
 */
function findGraduateExamAuth(data) {
    return fetch({
        url: '/api/electionservice/graduateAuth/findGraduateExamAuth',
        method: 'post',
        data: data
    });
}

export default {
    addGraduateExamAuth: addGraduateExamAuth,
    editGraduateExamAuth: editGraduateExamAuth,
    deleteGraduateExamAuth: deleteGraduateExamAuth,
    findGraduateExamAuth: findGraduateExamAuth
};
